package com.tbb.app.base.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "当前用户编辑传参对象")
public class UserCurUpdateDTO {

    @ApiModelProperty("昵称，必填")
    @NotBlank(message = "昵称必填")
    private String name;

    @ApiModelProperty("地区")
    private String location;

    @ApiModelProperty("性别，必填，0-男，1-女")
    @NotNull(message = "性别必填")
    private Integer gender;

    @ApiModelProperty("头像url")
    private String profileImg;

    @ApiModelProperty("背景图url")
    private String backgroundImg;

    @ApiModelProperty("个性签名")
    private String profileText;

}
